import request from '@/utils/request'

// 查询员工基本薪资列表
export function listSalaryBase(query) {
  return request({
    url: '/salaryBase/salaryBase/list',
    method: 'get',
    params: query
  })
}

//查询员工调薪列表
export function listSalaryChange(query) {
  return request({
    url: '/salaryBase/salaryBase/change',
    method: 'get',
    params: query
  })
}

// 查询员工基本薪资详细
export function getSalaryBase(id) {
  return request({
    url: '/salaryBase/salaryBase/' + id,
    method: 'get'
  })
}

// 新增员工基本薪资
export function addSalaryBase(data) {
  return request({
    url: '/salaryBase/salaryBase',
    method: 'post',
    data: data
  })
}

// 修改员工基本薪资
export function updateSalaryBase(data) {
  return request({
    url: '/salaryBase/salaryBase',
    method: 'put',
    data: data
  })
}

// 删除员工基本薪资
export function delSalaryBase(id) {
  return request({
    url: '/salaryBase/salaryBase/' + id,
    method: 'delete'
  })
}


//全部部门薪资统计报表
export function Statistics() {
  return request({
    url: '/salaryBase/salaryBase/all/statistics',
    method: 'get'
  })
}

//特定部门薪资统计报表
export function deptStatistics(query) {
  return request({
    url: '/salaryBase/salaryBase/dept/statistics',
    method: 'get',
    params: query
  })
}


